<?php

namespace app\admin\controller;
use app\common\controller\AdminBase;
use think\Db;

class Index extends AdminBase
{
    protected function _initialize()
    {
        parent::_initialize();
    }

    public function index()
    {
        return $this->fetch();
    }

    
    /*
     * 一键清空缓存
     */
    public function delcache() {
        $path=ROOT_PATH.'/runtime';
        delete_dir_file($path);
        $this->success('缓存清除成功');
    }
    
}
